<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="description" content="โฟร์แมนช๊อฟ รับตัดเสื้อและยูนิฟอร์ม-ชุดทำงานของโรงแรม บริษัท และร้านค้าต่างๆ ให้กับผู้ต้องการงานฝีมือคุณภาพ ด้วยประสบการณ์กว่า 30 ปี">
	<meta name="copyright" content="Copyright (c) 2011 for man tailor">
	<meta name="author" content="For man tailor">
	<title>สินค้าและบริการ | โฟร์แมนช๊อฟ  By for man tailor</title>
	
	<link rel="stylesheet" href="css/index.css" type="text/css" />
    <link rel="stylesheet" href="css/product.css" type="text/css" />
    <link rel="stylesheet" href="css/coin-slider-styles.css" type="text/css" />
          
    <script type="text/javascript" src="js/page_function/products.js"></script>
	<script type="text/javascript" src="js/navigator.js"></script>
	<script type="text/javascript" src="js/sidebar.js"></script>
</head>
<body onload="MM_preloadImages('images/navigator/index_swap.gif','images/navigator/aboutus_swap.gif','images/navigator/product_swap.gif','images/navigator/answer_swap.gif','images/navigator/process_swap.gif','images/navigator/customer_swap.gif','images/navigator/example_swap.gif','images/navigator/contact_swap.gif')">

<?php 
	$site_map = "<a href=\"index.php\">หน้าแรก</a> > <a href=\"products.php\">สินค้าและบริการ</a>";
	$page = 1;
	include("inc/layout/header/header.php");
	include('inc/reuse/dbconfig.php');
	if(isset($_GET['page'])) 				$page = $_GET['page'];
?>
<div class="shadow">  
    <?php include("inc/layout/navigator/navigator.php");?>
    <?php include ("inc/layout/sidebar/sidebar.php");?>          
</div>    

<div class="content">	   
	<div class="products-head"></div>
    <div class="body-border-gray">
    	<div class="txt-body-border-gray">
		<table border="0">
        	
			<tr>
            
				<td>หมวดหมู่หลัก :</td>
				<td>                 
					<select name="mainCategory" id="mainCategory" onChange="products_cmbMain()">                       	
					<option value="0" >ดูทั้งหมด</option>
					<?php include("command/rawdata/getMainCategoryForDropdown.php");?>		                                         
                        </select>
                </td>  
                <td>หมวดหมู่ย่อย :</td>
                <td colspan="4">                 		
                	<select name="subCategory" id="subCategory" onChange="products_cmbSub()">
                    	<option value="0" >ดูทั้งหมด</option>
                        <?php include("command/rawdata/getSubCategoryForDropdown.php");?>		                   
                    </select>
                </td> 
                                                
            </tr>
           
       </table>           
        </div>       
       <table border="0" cellpadding="0" cellspacing="0" >
       		<?php include("command/rawdata/getProducts.php"); ?>	
       </table>
       <table border="0">
			<tr>
				<td>
					<ul id="productspagination" >
						<?php
						//Show page links
						for($i=1; $i<=$pages; $i++)
						{
							$class = "";
							if($i == $page)
								$class = "class=\"curpage\"";
							echo "<li id=\"$i\" $class><a href=\"products.php?page=$i$page_link\">$i</a></li>";
						}
						?>
					</ul>	
				</td>
			</tr>
	 	</table>	     
	</div>  
    
    <div class="foot-border-gray"></div>
 
</div>

<?php include("inc/layout/footer/footer.php");?>

<input type="hidden" name="main_id" id="main_id"></input>
<input type="hidden" name="sub_id" id="sub_id"></input>
<input type="hidden" name="page" id="page" value="<?=$page ?>"></input>

</body>
</html>